mod user;
mod article;
use crate::common::db::DatabaseState;
use axum::Router;
use std::sync::{Arc, Mutex};
pub async fn route(
    router: Router<Arc<Mutex<DatabaseState>>>,
    path: String,
) -> Router<Arc<Mutex<DatabaseState>>> {
    let return_value = user::route(router, format!("{}/user", path)).await;
    article::route(return_value, format!("{}/article", path)).await
}
